package com.board.client;

import com.board.client.dto.UserDto;
import com.board.util.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "board-user-server",path = "/board-user")
public interface UserServiceClient {

    //根据用户id查询用户信息
    @GetMapping("/userInfo/findUserById")
    public Result<UserDto> findUserById(@RequestParam("userId") Integer userId);

}
